Optimal. Leaf size=29 \[ f x+(d-e+f) \log (1+x)-(d-2 e+4 f) \log (2+x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {1600, 1671,
646, 31} \begin {gather*} \log (x+1) (d-e+f)-\log (x+2) (d-2 e+4 f)+f x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 646
Rule 1600
Rule 1671
Rubi steps
\begin {align*} \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{4-5 x^2+x^4} \, dx &=\int \frac {d+e x+f x^2}{2+3 x+x^2} \, dx\\ &=\int \left (f+\frac {d-2 f+(e-3 f) x}{2+3 x+x^2}\right ) \, dx\\ &=f x+\int \frac {d-2 f+(e-3 f) x}{2+3 x+x^2} \, dx\\ &=f x+(d-e+f) \int \frac {1}{1+x} \, dx-(d-2 e+4 f) \int \frac {1}{2+x} \, dx\\ &=f x+(d-e+f) \log (1+x)-(d-2 e+4 f) \log (2+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 30, normalized size = 1.03 \begin {gather*} f x+(d-e+f) \log (1+x)+(-d+2 e-4 f) \log (2+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 31, normalized size = 1.07
method | result | size |
default | \(f x +\left (-d +2 e -4 f \right ) \ln \left (x +2\right )+\left (d -e +f \right ) \ln \left (1+x \right )\) | \(31\) |
norman | \(f x +\left (-d +2 e -4 f \right ) \ln \left (x +2\right )+\left (d -e +f \right ) \ln \left (1+x \right )\) | \(31\) |
risch | \(f x +\ln \left (-1-x \right ) d -\ln \left (-1-x \right ) e +\ln \left (-1-x \right ) f -\ln \left (x +2\right ) d +2 \ln \left (x +2\right ) e -4 \ln \left (x +2\right ) f\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 31, normalized size = 1.07 \begin {gather*} f x - {\left (d + 4 \, f - 2 \, e\right )} \log \left (x + 2\right ) + {\left (d + f - e\right )} \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 29, normalized size = 1.00 \begin {gather*} f x - {\left (d - 2 \, e + 4 \, f\right )} \log \left (x + 2\right ) + {\left (d - e + f\right )} \log \left (x + 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.28, size = 44, normalized size = 1.52 \begin {gather*} f x + \left (- d + 2 e - 4 f\right ) \log {\left (x + \frac {4 d - 6 e + 10 f}{2 d - 3 e + 5 f} \right )} + \left (d - e + f\right ) \log {\left (x + 1 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.60, size = 33, normalized size = 1.14 \begin {gather*} f x - {\left (d + 4 \, f - 2 \, e\right )} \log \left ({\left | x + 2 \right |}\right ) + {\left (d + f - e\right )} \log \left ({\left | x + 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.07, size = 29, normalized size = 1.00 \begin {gather*} f\,x+\ln \left (x+1\right )\,\left (d-e+f\right )-\ln \left (x+2\right )\,\left (d-2\,e+4\,f\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________